package com.lucy.rabc.service;

import com.lucy.common.service.BaseService;
import com.lucy.rabc.entity.SysUser;

import java.util.List;
import java.util.Optional;

/**
 * @author kindear
 */
public interface SysUserService extends BaseService<SysUser,Long> {
    /**
     * 根据用户名查询
     * @param userName
     * @return
     */
    Optional<SysUser> getByUserName(String userName);

    /**
     * 根据ID列表获取
     * @param ids
     * @return
     */
    List<SysUser> getByIdBatch(List<Long> ids);

    /**
     * 批量更新
     * @param users
     * @return
     */
    List<SysUser> batchUpdate(List<SysUser> users);

}
